package cn.wolfcode.mapper;

import cn.wolfcode.domain.Department;
import cn.wolfcode.queryobject.QueryObject;

import java.util.List;

public interface DepartmentMapper {

    int delete(Long id);  // 删除

    int insert(Department department); // 添加

    Department selectOne(Long id); // 查询指定一条数据

    List<Department> listAll(); // 查询全部数据

    int update(Department department); // 修改

   // int queryForCount(QueryObject qo); // 查询数据总条数(分页查询)

    List<Department> queryForList(QueryObject qo);  // 查询当前页面的结果集数据
}
